﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CruzDelSur.Models.RegisterModel>" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Registro de cuenta de usuario
</asp:Content>

<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Crear una nueva cuenta</h2>
    <p>
        Usa el siguiente formulario para crear una nueva cuenta.
    </p>
    <p>
        Las claves deben teber como mínimo <%= Html.Encode(ViewData["PasswordLength"]) %> caracteres de longitud.
    </p>

    <% using (Html.BeginForm()) { %>
        <%= Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.") %>
        <div class="span-10">
            <fieldset>
                <legend>Información de la cuenta</legend>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.UserName) %>
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.UserName) %>
                    <%= Html.ValidationMessageFor(m => m.UserName) %>
                </div>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Email) %>
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.Email) %>
                    <%= Html.ValidationMessageFor(m => m.Email) %>
                </div>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Password) %>
                </div>
                <div class="editor-field">
                    <%= Html.PasswordFor(m => m.Password) %>
                    <%= Html.ValidationMessageFor(m => m.Password) %>
                </div>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.ConfirmPassword) %>
                </div>
                <div class="editor-field">
                    <%= Html.PasswordFor(m => m.ConfirmPassword) %>
                    <%= Html.ValidationMessageFor(m => m.ConfirmPassword) %>
                </div>
                 <div class="editor-label">
                    <label>Perfil</label>
                </div>
                <div class="editor-field">
                <select><option>seleccionar perfil</option></select>
                </div>

            </fieldset>
        </div>
        <div class="span-10">
            <fieldset>
                <legend>Datos de la persona</legend>
                
                <div class="editor-label">
                    <label>Nombre</label>
                </div>
                <div class="editor-field">
                <input type="text" />
                </div>
                
                <div class="editor-label">
                    <label>Apellido Paterno</label>
                </div>
                <div class="editor-field">
                    <input type="text" />
                </div>
                
                <div class="editor-label">
                    <label>Apellido Materno</label>
                </div>
                <div class="editor-field">
                    <input type="text" />
                </div>
                
                <div class="editor-label">
                    <label>Codigo</label>
                </div>
                <div class="editor-field">
                    <input type="text" />
                </div>
                
                <p>

                </p>
            </fieldset>
        </div>
        <div class="span-24">
                    <input type="submit" value="Registrar cuenta" />
          </div>
    <% } %>
</asp:Content>
